<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<c:set var="path" value="${pageContext.request.contextPath}" />
<title>WebMaven</title>
<link href="${path}/scripts/ligerUI/skins/Aqua/css/ligerui-all.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" id="mylink" />
<script src="${path}/scripts/jquery/jquery-1.9.0.min.js"
	type="text/javascript"></script>
<script src="${path}/scripts/jquery.cookie.js"></script>
<script src="${path}/scripts/json2.js"></script>
<script src="${path}/scripts/main.js"></script>
<script src="${path}/scripts/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="${path}/scripts/ligerUI/js/plugins/ligerTab.js"></script>
<%-- <script src="${path}/scripts/ligerUI/ligerExt.js"></script> --%>
<link href="${path}/styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function logout() {
		$.ligerDialog.confirm('您确定要退出系统吗？', function(ok) {
			dologout(ok);
		});
	}
	function dologout(ok) {
		if (ok) {
			var url = "<c:url value='/user/user/logout.html' />";
			window.location.replace(url);
		}
	}

	//修改用户密码
	function alterUserPass() {
		$.ligerDialog.open({
			height : 300,
			width : 450,
			title : '修改用户密码',
			url : '<c:url value="/user/user/alterPass.htm"/>'
					+ '?userId=${user.id}',
			showMax : false,
			showToggle : true,
			showMin : false,
			isResize : true,
			slide : false,
			allowClose : true,
			showToggle : false
		});
	}
</script>
<link href="${path}/styles/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
	padding: 20px;
	margin: 0;
}

#accordion1 {
	width: 160px;
	overflow: hidden;
}
</style>
</head>
<body style="padding: 0px; background: #EAEEF5;">
	<div id="pageloading"></div>
	<div id="topmenu" class="l-topmenu">
		<div class="l-topmenu-logo">
			<div class="title">
				<p class="title_a">当前用户：${user.username}</p>
			</div>
			<div position="top">
				<p class="text"
					style="position: absolute; right: 18px; top: 0px; z-index: 99999;">
					<a href="javascript:void(0)" onclick="alterUserPass();"
						style="color: white; text-decoration: none;">修改密码</a>&nbsp;|&nbsp;
					<a href="javascript:logout();"
						style="color: white; text-decoration: none;">退出</a>
				</p>
			</div>
		</div>
	</div>
	<div id="main_layout"
		style="width: 99.2%; margin: 0 auto; margin-top: 4px;">
		<div position="left" title="主要菜单" id="accordion1">
			<div title="基础数据" class="sndMenu div_nowrap">
				<a class="l-link" href="javascript:void(0)"
					onclick="f_addTab('listSystemParam','系统参数','<c:url value="/user/systemParam/list.html"/>')">系统参数</a>
			</div>
			<div title="新闻公告" class="sndMenu div_nowrap"></div>
			<div title="角色权限管理" class="sndMenu div_nowrap">
				<a class="l-link" href="javascript:void(0)"
					onclick="f_addTab('listRolePage','用户管理','<c:url value="/user/user/list.html"/>')">用户管理</a>
				<a class="l-link" href="javascript:void(0)"
					onclick="f_addTab('listRolePage','角色管理','<c:url value="/user/role/list.html"/>')">角色管理</a>
				<a class="l-link" href="javascript:void(0)"
					onclick="f_addTab('listRolePage','权限管理','<c:url value="/user/func/list.html"/>')">权限管理</a>
			</div>
			<div title="商品管理" class="sndMenu div_nowrap">
				<a class="l-link" href="javascript:void(0)"
					onclick="f_addTab('listRolePage','商品管理','<c:url value=""/>')">商品管理</a>
			</div>
			<div title="订单管理" class="sndMenu div_nowrap"></div>
		</div>

	</div>
	<div style="height: 32px; line-height: 32px; text-align: center;">
		Copyright © 2016-2099 <a href="https://www.zifangsky.cn"
			title="zifangsky的个人博客">zifangsky的个人博客</a>
	</div>
	<div style="display: none"></div>
</body>
</html>